package cn.webestar.scms.user;

import cn.webestar.scms.commons.Constant;
import cn.webestar.scms.microsvc.context.MicrosvcApplicationContextInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {Constant.SCMS_BASIC_PKG, UserStarter.PROJECT_BASIC_PKG})
@SpringBootApplication
public class UserStarter {

	public static final String PROJECT_BASIC_PKG = "cn.webestar.scms";

	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(UserStarter.class);
		app.addInitializers(new MicrosvcApplicationContextInitializer(PROJECT_BASIC_PKG));
		app.run(args);
	}

}
